<!--
*Author：DGZ
 *Contact：jiduxiong@dagongzao.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/wmsproject/warehouse/Wms_MatStockTaking.jsx此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :details="details"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/wmsproject/warehouse/Wms_MatStockTaking.jsx";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        name: "Wms_MatStockTaking",
        setup() {
            const table = ref({
                key: "MatStockTakingId",
                footer: "Foots",
                cnName: "库存盘点",
                name: "warehouse/Wms_MatStockTaking",
                newTabEdit: false,
                url: "/Wms_MatStockTaking/",
                sortName: "MatStockTakingId"
            });
            const editFormFields = ref({"WarehouseId":"","Status":"","OrderNo":"","OrderDesc":"","Type":"","PushStatus":"","Message":"","Remarks":""});
            const editFormOptions = ref([[{"title":"仓库ID","field":"WarehouseId","type":"number"},
                               {"title":"盘点单状态(0,1,2,9)","field":"Status"}],
                              [{"title":"盘点单号","required":true,"field":"OrderNo"},
                               {"title":"盘点单说明","field":"OrderDesc"}],
                              [{"title":"单据类型;0为全盘,1为抽盘","field":"Type"},
                               {"title":" 推送状态 0- 未开始 1-推送中 2-推送成功 3-推送失败","field":"PushStatus"}],
                              [{"title":"错误信息","field":"Message"}],
                              [{"title":"备注","field":"Remarks","colSize":12,"type":"textarea"}]]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:"MatStockTakingId",title:"ID",type:"bigint",width:110,hidden:true,readonly:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"WarehouseId",title:"仓库ID",type:"bigint",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"Status",title:"盘点单状态(0,1,2,9)",type:"string",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"OrderNo",title:"盘点单号",type:"string",width:180,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"OrderDesc",title:"盘点单说明",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"Type",title:"单据类型;0为全盘,1为抽盘",type:"string",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"PushStatus",title:" 推送状态 0- 未开始 1-推送中 2-推送成功 3-推送失败",type:"string",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"Message",title:"错误信息",type:"string",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"Remarks",title:"备注",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"IsValid",title:"是否有效",type:"int",width:110,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"CreateId",title:"创建用户",type:"bigint",width:80,hidden:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"Creator",title:"创建人",type:"string",width:100,showOverflowTooltip:true,align:"left"},
                       {field:"CreateTime",title:"创建时间",type:"datetime",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyId",title:"修改用户",type:"bigint",width:80,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"Modifier",title:"修改人",type:"string",width:100,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyTime",title:"修改时间",type:"datetime",width:110,showOverflowTooltip:true,align:"left"}]);
            const detail = ref({columns:[]});
            const details = ref([]);
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
                details
            };
        },
    });
</script>
